History > Using a Temporary VHS

Using a Temporary VHS

When performing a VHS Check, it may be desirable to run a temporary VHS so that data can continued to be collected while the VHS is offline. This topic describes the steps for setting up a temporary VHS and then importing the temporary data back into the original VHS.

Each current value service is configured to report data to an associated production VHS. For example, MYSITE.UIS reports history data to MYSITE.VHS. In addition, other Historians can be configured to replicate data to a particular VHS, as shown in the following diagram:

Using a Temporary VHS example

To eliminate the need to change many configuration files and reduce the risk of error, best practice recommends that you create a temporary VHS and let the temporary VHS assume the identity of the original production VHS during its tenure. Once the original VHS is returned to operation, the data in the temporary VHS can be imported into the production VHS.

Create a Temporary VHS, Revert to Original VHS, and Import Data to Original VHS

The following steps assume the name of the VHS and its folder are VHS.

To Create and Start a Temporary VHS

  1. Use CygNet Explorer to stop the original VHS.
  2. Use Windows Explorer to rename the VHS folder: Rename the VHS folder to VHSORIG.
  3. Create a new VHS folder:
  1. Using Windows Explorer, create a new folder in CygNet\Services and name it VHS. The service in this folder will be used for data collection during the outage.
  2. Copy the executable (Vhs.exe) and configuration file (Vhs.cfg) from VHSORIG into VHS.
  1. Use a text editor to edit the Vhs.cfg file in the VHS folder: Assign the service a unique port number. This will be required when running both VHSs. The default port number of the VHS is 6016. For example, use port number 7016, if it is available.
  2. Note: You will have to open the port on the firewall if data is being replicated to the VHS.
  1. Use CygNet Explorer to restart the VHS. Data will now be written to the new VHS.

To Check VHSORIG

  1. Perform the required checks on VHSORIG using VHS Check.

To Reinstate the Original VHS

  1. Use CygNet Explorer to stop the temporary VHS.
  2. Use Windows Explorer to rename the VHS: Rename the VHS folder to VHSTEMP.
  3. Use a text editor to edit the Vhs.cfg file in the VHSTEMP folder: Rename the service to VHSTEMP.
  4. Use Windows Explorer to rename the original VHS folder: Rename the VHSORIG folder to VHS.
  5. Use CygNet Explorer to restart the VHS. Data will now be written to the original VHS.

To Import Data from VHSTEMP to VHS

  1. Use CygNet Explorer to:
  1. Add VHSTEMP to the ARS.
  2. Add VHSTEMP to the RSM.
  3. Start VHSTEMP using the RSM.
  1. Set the Source to VHSTEMP.
  2. Set the Destination to VHS.
  3. Do not use any limit options.

To Verify the Data

You can use any number of tools to verify that the data from VHSTEMP was imported into VHS:

To Delete the Temporary VHS

Once data verification is complete, delete the VHSTEMP from the RSM and the ARS, and delete the service folder. If you want to keep the service for future use, use Windows Explorer and delete all files from the VHSTEMP folder except Vhs.exe and Vhs.cfg.

  1. Use CygNet Explorer to stop the temporary VHSTEMP.
  2. Remove it from the system: Delete the VHSTEMP from the RSM and the ARS.
  3. Use Windows Explorer to delete the VHSTEMP folder.
Back to top

Let us know how we can improve this topic.

CygNet at weatherford.com

© 2020 Weatherford. All rights reserved.